/**
 * Email ：huangyijia138@qq.com
 * Des：
 *
 * @description: 22
 * @author: huangjiajia
 * @create: 2025-01-20 13:22
 **/
public class Car {

    private String brand;

    private int price;

    private String color;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        if (price <=10000|| price >=50000) {
            System.out.println("价格输入不合理");
        }
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
